package com.itheima.health.service;

import com.itheima.health.entity.PageResult;
import com.itheima.health.entity.QueryPageBean;
import com.itheima.health.pojo.Menu;
import com.itheima.health.pojo.Permission;
import com.itheima.health.pojo.Role;

import java.util.List;


public interface RoleService {
    List<Role> findAll();

    PageResult findAll(QueryPageBean queryPageBean);

    List<Menu> findAllMenu();

    List<Permission> findAllPermission();

    void add(Integer[] permissions, Integer[] menus, Role role);

    void delete(Integer id);

    Role findById(Integer id);

    List<Integer> findMenusByRoleId(Integer id);

    List<Integer> findPermissionsByRoleId(Integer id);

    void edit(Role role, Integer[] permissions, Integer[] menus);
}
